package com.order.feign.client;

import com.order.feign.fallback.GoodsServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jiaZhenpeng
 * @Title:
 * @Package
 * @Description:
 * @date 2022/11/1818:53
 */
@FeignClient(value = "goodsservice",fallbackFactory = GoodsServiceFallbackFactory.class)
public interface GoodsService {

    @GetMapping("/goods/getGoods/{id}")
    String getGoods(@PathVariable("id") Long id);
}
